{{useCss "/app-pages/css/admin/sourceimages.scss"}}
<div class="sourceimages">
	<div class="images">
		{{#each $Cache.admin.sourceimages.list.item}}
		<div class="item">
			<div class="image">
				<img bind-src="{{url}}" />
			</div>
			<div class="title">{{name}}</div>
			<div class="buttons">
				<a class="icon-trash-empty" event-click="{{'$Top.$Event.admin.sourceimages.delete'}}"></a>
				{{#if url}}
				<a class="icon-eye" href="{{url}}" target="_blank"></a>
				{{/if}}
			</div>
		</div>
		{{/each}}

		<div class="pages">
			<div class="count">共{{$Cache.admin.sourceimages.pages.length}}页</div>
			<div class="items">
				{{#each $Cache.admin.sourceimages.pages}}
				<href class="page" to="/admin/sourceimages.html?offset={{$Top.$Cache.admin.sourceimages.count*$Index}}">{{$Index+1}}</href>
				{{/each}}
			</div>
		</div>
	</div>
</div>
